package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ex-kuangxiaomin101 on 2015-12-28.
 */
public class PersonDetailBean implements Parcelable{

    private int id;
    private String username;
    private String phone;
    private String picture;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.username);
        dest.writeString(this.phone);
        dest.writeString(this.picture);
    }

    public PersonDetailBean() {
    }

    protected PersonDetailBean(Parcel in) {
        this.id = in.readInt();
        this.username = in.readString();
        this.phone = in.readString();
        this.picture = in.readString();
    }

    public static final Creator<PersonDetailBean> CREATOR = new Creator<PersonDetailBean>() {
        public PersonDetailBean createFromParcel(Parcel source) {
            return new PersonDetailBean(source);
        }

        public PersonDetailBean[] newArray(int size) {
            return new PersonDetailBean[size];
        }
    };

    @Override
    public String toString() {
        return "PersonDetailBean{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", picture='" + picture + '\'' +
                '}';
    }
}
